package com.ruoyi.register.mapper;


import com.ruoyi.register.po.BusinessLicensePo;
import com.ruoyi.register.po.MerchantUserPo;
import com.ruoyi.register.vo.GoodsVo;
import com.ruoyi.register.vo.MerchantUserVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MerchantRegisterMapper {

    @Select("select * from business_license where business_license=#{businessLicense}")
    BusinessLicensePo findByBusinessLicense(MerchantUserVo merchantUserDto);
    @Insert("insert merchant_user  values(null,#{username},#{password},#{mobile},#{idCard},#{bankCard},#{businessLicense},0)")
    void merchantRegister(MerchantUserVo merchantUserDto);
    @Select("select * from merchant_user where username = #{username}")
    MerchantUserVo checkUsername(MerchantUserVo merchantUserVo);
    @Insert("insert goods values(null,#{title},#{img})")
    void importData(GoodsVo goodsVo);
}
